home *** CD-ROM | disk | FTP | other *** search
- IEEE_INT(3I) Last changed: 1-6-98
-
-
- NNAAMMEE
- IIEEEEEE__IINNTT - Converts _x to an integral value
-
- SSYYNNOOPPSSIISS
- IIEEEEEE__IINNTT (([XX==]_x [,, [YY==]_y]))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS/mk and IRIX systems
-
- CRAY T90 systems that support IEEE floating-point arithmetic
-
- SSTTAANNDDAARRDDSS
- CF90 and MIPSpro 7 Fortran 90 compiler extension to Fortran 90
-
- IEEE Standard for Binary Floating-point Arithmetic
-
- DDEESSCCRRIIPPTTIIOONN
- The IIEEEEEE__IINNTT intrinsic function converts _x to an integral value
- according to the rounding mode currently in effect. It accepts the
- following arguments:
-
- _x Must be of type real. It can be scalar or an array.
-
- _y If specified, must be scalar and of type integer or real.
-
- IIEEEEEE__IINNTT is an elemental function. The name of this intrinsic cannot
- be passed as an argument.
-
- NNOOTTEESS
- The IEEE intrinsic procedures use the named constants contained in a
- system module, so you must include one of the following statements in
- your program:
-
- * On UNICOS and UNICOS/mk systems: UUSSEE CCRRII__IIEEEEEE__DDEEFFIINNIITTIIOONNSS
-
- * On UNICOS, UNICOS/mk, and IRIX systems: UUSSEE FFTTNN__IIEEEEEE__DDEEFFIINNIITTIIOONNSS
-
- The CCRRII__IIEEEEEE__DDEEFFIINNIITTIIOONNSS module is obsolescent. It will be removed
- for the CF90 4.0 release.
-
- RREETTUURRNN VVAALLUUEESS
- The result type and type parameters are as follows. If _y is absent,
- the result type and type parameter is default integer. If _y is
- present, the result type and type parameter is the same type and type
- parameter as _y. If _x is an array, the result is an array of the same
- shape as _x. A conversion between a floating-point integral value and
- an integer is exact unless an exception arises.
-
- If _y is absent, the result is a default integer rounded from _x
- according to the rounding mode currently in effect.
-
- If _y is present and is of type integer, the result is of type integer
- with the same kind type parameter value as _y and whose value is
- rounded from _x according to the rounding mode currently in effect.
-
- If _y is present and is of type real, the result is of type real with
- the same kind type parameter value as _y and whose value is rounded
- from _x according to the rounding mode currently in effect. If the
- rounding mode is round-to-nearest and the difference between the
- unrounded value of _x and the rounded result of IIEEEEEE__IINNTT is exacty one
- half, the result of IIEEEEEE__IINNTT is even.
-
- The format of the result value is determined as follows:
-
- * If _x is scalar, the result is a scalar.
-
- * If _x is an array, the result is an array in which each element is
- the value of _x
- _i
- rounded to the type and type parameter of _y.
-
- EEXXAAMMPPLLEESS
- REAL x
- ...
- PRINT *, IEEE_INT(x, 1)
- PRINT *, IEEE_INT(x, 1.0)
-
- If xx had the value 4.1, the result of the first invocation of IIEEEEEE__IINNTT
- would be integer value 4 and the second result would be the real value
- 4.0.
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
- printed version of this man page.
-
-